package adapter;

/**
 * @Author：LJ
 * @Description：对象适配器角色 与Adapter 类适配角色 做区别
 * @Date: 2017/12/1
 * @Modified By:
 */
public class ObjectAdapter implements Target {
    private Adaptee adaptee;
    private Adaptee1 adaptee1;

    public ObjectAdapter(Adaptee adaptee, Adaptee1 adaptee1) {
        this.adaptee = adaptee;
        this.adaptee1 = adaptee1;
    }

    @Override
    public void request() {
        adaptee.doSomething();
        adaptee1.doSomething();
    }
}
